package com.Java.train.business.entity.DTO;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Getter
@Setter
@Accessors(chain = true)
@TableName("daily_train_seat")
@ApiModel(value = "DailyTrainSeat对象", description = "每日座位")
public class DailyTrainSeatDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("日期")
    @TableField("date")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date date;

    @ApiModelProperty("车次编号")
    @TableField("train_code")
    private String trainCode;

    @ApiModelProperty("箱序")
    @TableField("carriage_index")
    private Integer carriageIndex;

    @ApiModelProperty("排号|01, 02")
    @TableField("line")
    private String line;

    @ApiModelProperty("列号|枚举[SeatColEnum]")
    @TableField("col")
    private String col;

    @ApiModelProperty("座位类型|枚举[SeatTypeEnum]")
    @TableField("seat_type")
    private String seatType;

    @ApiModelProperty("同车箱座序")
    @TableField("carriage_seat_index")
    private Integer carriageSeatIndex;

    @ApiModelProperty("售卖情况|将经过的车站用01拼接，0表示可卖，1表示已卖")
    @TableField("sell")
    private String sell;

    @ApiModelProperty("新增时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty("修改时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;
}